package cn.kgc.thread.demo1;

/**
 * @description:
 * @author: 石浩杰
 * @date: 2022-12-14 08:30
 */
public class MyRunnable implements Runnable{
    @Override
    public void run() {
        String name=Thread.currentThread().getName();
        System.out.println(name+"正在运行！");
    }

    public static void main(String[] args) {
        Thread thread=new Thread(new MyRunnable());
        thread.start();
    }
}
